#import <UIKit/UIKit.h>

@interface UIView (ArleneExtension)

/**
 * 判断一个控件是否真正显示在主窗口
 */
- (BOOL)arlene_isShowingOnKeyWindow;

/**
 * xib创建的view
 */
+ (instancetype)arlene_viewFromXib;

/**
 * xib创建的view
 */
+ (instancetype)arlene_viewFromXibWithFrame:(CGRect)frame;





@property (nonatomic,assign) CGFloat left;
@property (nonatomic,assign) CGFloat top;
@property (nonatomic,assign) CGFloat right;
@property (nonatomic,assign) CGFloat bottom;
@property (nonatomic,assign) CGFloat width;
@property (nonatomic,assign) CGFloat height;
@property (nonatomic,assign) CGFloat centerX;
@property (nonatomic,assign) CGFloat centerY;

/**
 添加阴影
 
 @param offset  偏移量
 @param radius  圆角
 @param color   颜色
 @param opacity 透明度
 */
- (void)dropShadowWithOffset:(CGSize)offset radius:(CGFloat)radius color:(UIColor *)color opacity:(CGFloat)opacity;

@end
